<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page import="java.util.*"%>
<%@ page import="java.text.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Resume Database</title>
</head>
<body>
<h3>List of Resumes on server</h3>
<hr />
<br />

<%
	//String[] resumes = (String[]) request.getAttribute("resumes");
	Map<String, String> fmap = (Map<String, String>) request
			.getAttribute("fmap");

	int serial = 0;
%>

<table width="100%" border="0" bordercolor="white" cellpadding="5"
	cellspacing="1">
	<tr bgcolor="maroon" style="color: white;">
		<td>Serial</td>
		<td>Resume Name</td>
		<td>Resume Upload Date</td>
	</tr>
	<%
		Iterator it = fmap.entrySet().iterator();
		while (it.hasNext()) {
			serial++;
			Map.Entry pairs = (Map.Entry) it.next();
	%>
	<tr>
		<td bgcolor="#E5ECF9" width="40"><%=serial%>.</td>


		<td bgcolor="#E5ECF9"><s:url action="resumeToDownload"
			namespace="/client" var="resumeToDownloadUrl">
			<s:param name="resumeToDownload"><%=pairs.getKey()%></s:param>
		</s:url> <a href="${resumeToDownloadUrl}"><%=pairs.getKey()%></a></td>
		<td bgcolor="#E5ECF9"><%=pairs.getValue()%></td>
	</tr>
	<%
		}
	%>

</table>
</body>
</html>